package com.dcy.common.constant;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @Author：dcy
 * @Description: 全局公共常量
 * @Date: 2019/9/6 13:36
 */
public interface Constant {

    /**
     * 线程池
     */
    // ExecutorService EXECUTOR = Executors.newFixedThreadPool(10);

    String SESSION_USER_KEY = "UserInfo";
    // Header请求头中 和  线程中key
    String USER_ID = "User-ID";
    String USER_NAME = "User-Name";
    /**
     * 存储用户权限
     */
    String REDIS_RESOURCE_CODE = "resource:code:";
    String REDIS_ROLE_KEY = "role:key:";

    String REDIS_CAPTCHA_KEY = "user:captcha:";
    String REDIS_ROUTER_LIST= "resource:router:list";
    String REDIS_ROUTER_LOCK = "resource:router:lock";

    /**
     * 魔法值
     */
    String ZERO = "0";
    String ONE = "1";
    String TWO = "2";
    String THREE = "3";
    String FOUR = "4";
    String FIVE = "5";
    String SIX = "6";
    String SEVEN = "7";
    String EIGHT = "8";
    String NINE = "9";
}
